<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>企业综合管理运营系统平台</title>
	<link rel="stylesheet" type="text/css" href="css/admin_style.css" />
	<script src="js/jquery-1.4.4.min.js"></script>
	<script src="js/iframe.js"></script>
	<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
	<script>
	var msg="${msg}";
		if(msg!=""){
			alert(msg);
		}
	</script>
</head>
<body class="right_body">
<form action="emp!${id>0?"update":"add" }" method="post">
	<input type="hidden" name="emp.empid" value="${id }" />
	<div class="body">
		<div class="top_subnav">企业综合管理运营系统平台 ＞ 员工信息编辑</div>
		<div class="title">
			<div class="title_info zs">
				员工资料录入
			</div>
		</div>
		<div>
			<div class="item">
				<span>登录名：</span><input type="text" name="emp.loginid" value="${emp.loginid }" />
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>密码：</span><input type="password" name="emp.pwd" value="${emp.pwd }" />
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>员工姓名：</span><input type="text" name="emp.empname" value="${emp.empname }" size="50" />
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>所在部门：</span>
				<s:select list="deps" name="emp.departid.departid" listKey="departid" listValue="departname" value="emp.departid.departid"></s:select>
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>联系电话：</span><input type="text" name="emp.tel" value="${emp.tel }" size="50" />
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>入职时间：</span><input type="text" class="Wdate" name="emp.joindate" value="${emp.joindate }" onclick="WdatePicker()" />
			</div>
			<p class="line">
			</p>
			<div class="item">
				<input type="submit" class="button" value=""/>
			</div>
		</div>
		<div style="clear:both"></div>
			<p class="line">
			</p>
	</div>
</form>
</body>
</html>
